//package com.example.demomcp;
//import io.modelcontextprotocol.client.McpClient;
//import io.modelcontextprotocol.client.transport.WebFluxSseClientTransport;
//import io.modelcontextprotocol.spec.McpSchema;
//import org.springframework.web.reactive.function.client.WebClient;
//
//import java.util.Map;
//
//public class SsetEST {
//    public static void main(String[] args) {
//        var transport = new WebFluxSseClientTransport(
//                WebClient.builder().baseUrl("http://localhost:8080")
//        );
//        var client = McpClient.sync(transport).build();
//        client.initialize();
//        McpSchema.ListToolsResult listToolsResult = client.listTools();
//        System.out.println(listToolsResult);
//        McpSchema.CallToolResult callToolResult =
//        client.callTool(new McpSchema.CallToolRequest("getWeather",
//                Map.of("cityName", 40.7128)));
//        System.out.println(callToolResult);
//    }
//}
